package com.baidu.management.controller;
import com.baidu.management.entity.SysUser;
import com.baidu.management.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * 用户表 控制层
 */
@RestController
@RequestMapping("/system/user")
public class SysUserController {
    @Autowired
    SysUserService userService;
    /**
     * 显示用户表所有数据
     */
    @GetMapping("/list")
    public List<SysUser> list() {
        return userService.selectUserList();
    }
}